export default [
    // 用户登录接口
    {
        url: '/api/user/login',
        method: 'post',
        response: ({ body }) => {
            const { username, password } = body;
            const checkUser = username === 'admin' && password === '111111'
            if (!checkUser) {
                return {
                    code: 201,
                    data: {
                        message: '登录失败'
                    }
                }
            }
            return {
                code: 200,
                data: {
                    token: 'ewehu#hhcihis'
                }
            }
        }
    }
]